package com.source.multithread.mutilreadfile;

public class Main {
	/**
	 * https://www.cnblogs.com/metoy/p/4470418.html
	 * https://github.com/yongzhidai/ToolClass/tree/master/src/main/java/cn/dyz/tools/file
	 * @param args
	 */
	public static void main(String[] args) {
		BigFileReader.Builder builder = new BigFileReader.Builder("D:\\test-data\\继承亡夫遗产后.txt",new IHandle() {
			//
			@Override
			public void handle(String line) {
				//System.out.println(line);
				//increat();
			}
		});
		builder.withTreahdSize(10)
			   .withCharset("gbk")
			   .withBufferSize(1024*1024);
		BigFileReader bigFileReader = builder.build();
		bigFileReader.start();
	}
	
}